package service;

import dao.ManDao;
import entity.Man;

import java.sql.SQLException;
import java.util.List;

public class Manservice {
    private final ManDao dao=new ManDao();

    public List<Man> getAll() throws SQLException {
        return dao.getAll();
    }
    public void addMan(Man student){
        dao.addMan(student);
    }

    public void UpdateMan(Man student){
        dao.UpdateMan(student);
    }

    public void DeleteMan(int id) throws SQLException{
        dao.DeleteMan(id);
    }
}
